Skip to content

feat(weight-custody-manifest): add WCM demo catalog - #61

Merged
imran-siddique merged 1 commit into
mainfrom
feat/weight-custody-manifest-examples
Jul 27, 2026
Merged

feat(weight-custody-manifest): add WCM demo catalog#61
imran-siddique merged 1 commit into
mainfrom
feat/weight-custody-manifest-examples

Conversation

@imran-siddique

Copy link
Copy Markdown
Contributor

What

Adds a weight-custody-manifest/ scenario folder, relocating the WCM demos here now that the SDK is published on PyPI. They depend on weight-custody-manifest>=0.19.0 from the index rather than an in-repo checkout, mirroring the ca2a-delegation/ layout.

Contents

  • open_model_e2e.py — full six-step custody flow on an open model (mock attestation): joint manifest signing, attestation-gated release, wipe-on-lapse, license, derivative + lineage.
  • sovereign_self_custody.py — 2-of-3 threshold split-key release (SPEC 3.5).
  • snp_replay.py — offline SEV-SNP quote replay against a committed synthetic bundle (fixtures/snp_quote_synthetic.json).
  • real_open_model.py — downloads SmolLM2-135M and hashes its real safetensors, with a tamper demo and optional --infer. Run-local (network, heavy); extras in requirements-infer.txt.
  • README.md adapted from the WCM tutorials; setup is pip install weight-custody-manifest.

CI

New weight-custody-manifest job installs requirements.txt from PyPI and runs the three offline demos to exit 0. real_open_model.py is deliberately excluded from CI.

Verified locally in a clean venv: all three offline demos exit 0 against the published 0.19.0 package.

🤖 Generated with Claude Code

Relocate the Weight Custody Manifest demos into a per-product scenario
folder, depending on the published PyPI package (weight-custody-manifest
>=0.19.0) instead of the in-repo SDK. Mirrors the ca2a-delegation layout.

Four demos: open_model_e2e (full 6-step flow on an open model),
sovereign_self_custody (2-of-3 threshold release), snp_replay (offline
SEV-SNP quote replay against a committed synthetic bundle), and
real_open_model (downloads SmolLM2-135M and hashes real weights, run
local). README adapted from the WCM tutorials. A CI job installs from
PyPI and runs the three offline demos; real_open_model is excluded
(network, heavy) with its extras in requirements-infer.txt.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@imran-siddique
imran-siddique merged commit 08cd43d into main Jul 27, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant